<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>v-model的等价形式</title>
</head>
<body>
    <div id="app">
        <input type="text" :value = "value" @input = "handleChange">
        <p>输入框中显示：{{value}}</p>
    </div>

    <script src="./utils/vue.min.js"></script>

    <script>
        var app = new Vue({
            el: '#app',
            data: {
                value: ''
            },
            methods:{
                handleChange: function (event) {
                    this.value = event.target.value;
                }
            }
        });
    </script>

</body>
</html>